package com.farm.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.farm.service.InsertHomeService;

@Controller
public class InsertHomeController {
	
	@Autowired
	private InsertHomeService insertHomeService;
	
	//签到插入是否入住
		@ResponseBody
		@RequestMapping("/selectInsertHome.do")
		public Map articleArray(@RequestParam Map<String,Object> map,HttpServletRequest request) {
			//u_id=174&u_rz=0&openid=o0z3K5GA82ndUO6I1qFYdDzUYH8E&tx=1&mobile=123
			//u_id 用户id   
			//u_rz 是否入住   0入住  1不入住
			//opening
			//tx 同行     0无  1有
			//mobile   同行电话
			Map<String, Object> insert = insertHomeService.insert(map);
			return insert;
			
		} 

}
